import java.util.ArrayList;

public class Test2 {
    public static void main(String[] args) {
        long time1 = System.currentTimeMillis();
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 1; i <= 10000000; i++) {
            list.add(i);

        }
        long time2 = System.currentTimeMillis();
        System.out.println((time2-time1)+"毫秒");

    }
}
